import java.util.Random;
import java.util.Scanner;

                public class hw9 {
                    public static void main(String[] args) {
                        Scanner scanner = new Scanner(System.in);
                        Random random = new Random();
                        int ranNum = random.nextInt(201);//0-200的数
                        System.out.println("请输入0-200的数");
                        while (true) {
                            int num = scanner.nextInt();
                            if (num > ranNum) {
                                System.out.println("大了");
                            } else if (num == ranNum) {
                                System.out.println("对了");
                break;
            } else {
                System.out.println("小了");
            }

        }
    }
}
